<template>
  <div class="upload-container">
    <UploadFile :commonSuffix="commonSuffix" btnName="图片上传" @success="handleSuccess"></UploadFile>
  </div>
</template>

<script>
import UploadFile from "@/components/UploadFile/UploadFile";

export default {
  name: 'EditorSlideUpload',
  components:{
      UploadFile
  },
  props: {
      commonSuffix:{
          type:String,
          default:"temp"
      },
    color: {
      type: String,
      default: '#1890ff'
    }
  },
  data() {
    return {
      dialogVisible: false,
      listObj: {},
      fileList: []
    }
  },
  methods: {
      handleSuccess(url,file){
          this.$emit("successCBK",url)
      }
  }
}
</script>

<style lang="scss" scoped>
.editor-slide-upload {
  margin-bottom: 20px;
  ::v-deep .el-upload--picture-card {
    width: 100%;
  }
}
</style>
